import {IsString} from "class-validator";

export class CreateCoffeeDto {
  @IsString()
  readonly name: string;

  @IsString()
  readonly brand: string;

  // each:true 代表期望值是字符串数组
  @IsString({each:true})
  readonly flavors: string[];
}
